package day03.HomeWork;

import java.util.Scanner;

/**
 * @description: TODO
 * @author yumo
 * @version: 1.0
 * @date 2025/3/3 19:35
 */
public class homeWork2 {
    public static void main(String[] args) {
        int a, b, c;
        a = 2;
        b = 3;
        c = 4;
        int i = a + b;//5
        int j = c - a;//2
        int e = a * b;//6
        int k = c / a;//2
        int l = c % b;//1
        System.out.println("" + i + j + e + k + l);


        int a1 = 10;
        int b1 = a1++;
        System.out.println(b1);//10
        int c1 = ++a1;
        System.out.println(c1);//12
        int d1 = a1--;
        System.out.println(d1);//12
        int d2 = --a1;
        System.out.println(d2);//10


        int b2 = 10;
        int b3 = 20;

        boolean b4 = b2 < 100 && b3 > 50;
        System.out.println(b4);//false
        boolean b5 = b2 < 20 && b3 > 10;
        System.out.println(b5);//true
        boolean b6 = b3 * 2 < 100 || b3 / b2 > 10;
        System.out.println(b6);//true
        boolean b7 = b3 > 30 || b2 < 5;
        System.out.println(b7);//false



        int gj=10;
        int jj=30;
        gj+=10;
        jj-=10;
        int kj=2;
        int jl=4;
        kj*=3;
        jl/=2;
        System.out.println(""+gj+jj+kj+jl);



        int jh=10;
        System.out.println(jh+20);
        System.out.println(""+jh+20);
        System.out.println(20+10+"dskjf");



        int ka=10;
        int lj=20;
        int skj=lj<100?ka:lj;
        System.out.println(skj);
        int bk=lj>100?ka:lj;
        System.out.println(bk);




        int ksj=19;
        if (ksj<100){
            System.out.println("rencai");
        }

        if (ksj>100){
            System.out.println("000");
        }else {
            System.out.println("111");
        }


        if (0<ksj&&ksj<18){
            System.out.println("未成年");
        }else if (ksj<30){
            System.out.println("成年人");
        }else if (ksj<50){
            System.out.println("中年人");
        }else if (ksj<=100) {

            System.out.println("老年人");
        }else {
            System.out.println("请重新输入");
        }


        Scanner sacn=new Scanner(System.in);
        int kjl= sacn.nextInt();
        switch (kjl) {
            case 1:
                System.out.println("1111");
                break;
                case 2:
                    System.out.println("222");
                    break;
                    case 3:
                        System.out.println("333");
                        break;
            default:
                System.out.println("重新输入");
        }
    }
}
